﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SignalR.Hubs;

namespace HIS.Push {

    [HubName("opdHub")]
    public class OpdHub : Hub {

        private readonly ChanelInstance _theClass;

        public OpdHub() : this(ChanelInstance.Instance) { }

        public OpdHub(ChanelInstance obj) {
            _theClass = obj;
        }

        public void SendWorklistOPDDoctor() {
            _theClass.SendToSpesificDoctor(string.Empty, "physician-doctor");
        }

        public string SetIdToDoctorSchedule() {
            return this.Context.ConnectionId;
        }

        public void SendToAll() {
            _theClass.SendToAllOPD(string.Empty);
        }

    }
}